public class getHeight {
    static class TreeNode {
        int val;
        Demo.TreeNode left;
        Demo.TreeNode right;
        TreeNode(char val){
            this.val = val;
        }
    }
//    public int getHeight(TreedNode root){
//        if(root == null){
//            return 0;
//        }
//        if(root.left==null&&root.right==null){
//            return 1;
//        }
//        int lefthight = getHeight(root.left);
//        int righthight = getHeight(root.right);
//        return lefthight>righthight?lefthight+1:righthight+1;
//    }
}
